import request from '@/utils/request'
export function reservationAll(data,name,username) {
 return request({
  url: '/system/logistics-order/list',
  method: 'get',
  params:{...data,name,username}
 })
}
export function add(data) {
 return request({
  url: '/system/logistics-order/add',
  method: 'post',
  data
 })
}
export function edit(data) {
 return request({
  url: '/system/logistics-order/update',
  method: 'post',
  data
 })
}
export function WineByKey(id) {
 return request({
   url: '/system/logistics-order/WineByKey',
   method: 'get',
   params:{id}
 })
}

export function deleteid(reservationId){
 return request({
  url:'/system/logistics-order/delete',
  method:'post',
  params:{reservationId}
 })
}
//确认支付
export function confirmPayment(id){
  return request({
   url:'/system/logistics-order/confirmPayment',
   method:'post',
   data:{id}
  })
 }
 export function ship(id){
  return request({
   url:'/system/logistics-order/ship',
   method:'post',
   params:{id}
  })
 }
 export function confirmReceipt(id){
  return request({
   url:'/system/logistics-order/confirmReceipt',
   method:'post',
   params:{id}
  })
 }